//
//  OrderListView.h
//  car
//
//  Created by chenxu on 15/3/21.
//  Copyright (c) 2015年 chenxu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Order.h"
#import "Order_Cell.h"

@interface OrderListView : UIView<UITableViewDataSource, UITableViewDelegate>

typedef void(^OrderSelectBlock)(Order *order);//选择某个car
typedef NS_ENUM(NSInteger, who){
    user = 0,
    company,
};
- (id)initWithFrame:(CGRect)frame Orders:(NSArray *)orders selectblock:(OrderSelectBlock)selectblock Finished:(BOOL)finished who:(who)who;
- (void)refreshUI;
- (void)refreshToQueryData;
- (void)tabBarItemClicked;

@end
